package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_maintain")
public class Maintain implements Serializable {
    /**
     * 维修
     */
    @TableId(value = "maintain_id", type = IdType.AUTO)
    private Integer maintainId;

    /**
     * 报修单ID
     */
    @TableField(value = "repais_id")
    private Integer repaisId;

    /**
     * 0待处理，1已处理
     */
    @TableField(value = "repais_status")
    private Integer repaisStatus;

    /**
     * 报修人
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 承修人
     */
    @TableField(value = "repair_user_id")
    private Integer repairUserId;

    /**
     * 备注
     **/
    @TableField(value = "remark")
    private String remark;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String repairUserName;


    private static final long serialVersionUID = 1L;
}